<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div align="center">
		<form action="${pageContext.request.contextPath}/loginServlet" method="post">
		<table border="1" cellspacing="0" cellpadding="10">
			<caption>登陆</caption>
			<tr>
				<td>用户名</td>
				<td><input type="text" name="username"></td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input type="password" name="password"></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit">
				</td>
			</tr>
		</table>
		<c:if test="${nameErr!=nill}">
		<h3>用户名错误</h3>
		</c:if>
		</form>
	</div>

</body>
</html>